/*
 * Copyright (c) 2006, 2021, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.Arrays;

/**
 * <p>Project: javase - ListDemo
 * <p>Powered by webrx On 2021-12-21 14:53:55
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class ListDemo {
    public static void main(String[] args) {
        //张男 张女
        System.out.println((int) '张');//24352
        System.out.println((int) '男');//30007
        System.out.println((int) '女');//22899
        System.out.println((int) '王');//29579
        System.out.println((int) 'j');//106

        String[] ns = {"王五", "张男", "张女", "jack"};
        System.out.println(Arrays.toString(ns));

        Arrays.sort(ns);
        System.out.println(Arrays.toString(ns));

        //Arrays.sort(ns, (a, b) -> b.compareTo(a));
        Arrays.sort(ns, (a, b) -> b.compareTo(a));
        System.out.println(Arrays.toString(ns));
    }
}
